import CSelectFormItem from '@/components/CSelectFormItem/CSelectFormItem'
import { Form } from '@douyinfe/semi-ui'
import { OptionProps } from '@douyinfe/semi-ui/lib/es/select'

interface INotifySearchFormItem {
  dictList: OptionProps[]
}

export default function NotifySearchFormItem(props: INotifySearchFormItem) {
  return (
    <>
      <Form.Input field="title" showClear label="标题" />
      <CSelectFormItem
        field={'type'}
        label={'通知类型'}
        optionList={props.dictList}
      />
      <CSelectFormItem field={'readFlag'} label={'已读'} />
      <Form.DatePicker
        field="createTimeList"
        label="创建时间"
        type="dateTimeRange"
      />
    </>
  )
}
